//
//  MovieListView.swift
//  SwiftUi
//
//  Created by xm on 05/09/2025.
//

import SwiftUI

struct PersonDetailView: View {
    
    let viewMode: PersonViewModel
    
    init(viewMode: PersonViewModel) {
        self.viewMode = viewMode
    }
    
    var body: some View {
        Text("Movie:\(viewMode.person.name)")
    }
}

#Preview {
    let coordinator = MoviesCoordinator()
    let person = UseCaseData.persons[0]
    PersonDetailView(viewMode: PersonViewModel(person: person, coordinator: coordinator))
}
